// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// 导入及自定义的路由器
import router from './router/index.js';
import axios from 'axios';
import moment from 'moment';
import store from './store';
import './assets/css/icon.css';
import 'element-ui/lib/theme-chalk/index.css'; // 默认主题
// import '../static/css/theme-green/index.css';       // 浅绿色主题
import './assets/css/icon.css';
axios.defaults.baseURL = "http://localhost:3000"
Vue.config.productionTip = false

Vue.use(ElementUI)
// Vue.use(bus)
Vue.prototype.$axios = axios
// Vue.prototype.$echarts = echarts
Vue.filter("moment",function(value,formatString){
  formatString = formatString || 'YYYY-MM-DD';
  return moment(value).format("YYYY-MM-DD");  
})

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
